cmake_minimum_required(VERSION 3.10)
project(IPC_Latency_Test)

# 设置C标准
set(CMAKE_C_STANDARD 99)

# 添加消息队列库
set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads REQUIRED)

# 生成发送者程序
add_executable(sender sender.c)
target_link_libraries(sender PRIVATE Threads::Threads rt)

# 生成接收者程序
add_executable(receiver receiver.c)
target_link_libraries(receiver PRIVATE Threads::Threads rt)
